import { execSync } from "child_process";
import { resolve } from 'path';

export function getApiDoc(apiDocUrl, doc) {
    var filePath = resolve(process.cwd(), doc)
    var curl = `curl "${apiDocUrl}" > "${filePath}"`
    execSync(curl, { encoding: 'buffer' });
}
